<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>

<head>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta charset='utf-8'>
    <meta name="author" content="order by dede58.com"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <title>个人中心</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="stylesheet" type="text/css" href="css/base.css"/>
    <link rel="stylesheet" type="text/css" href="css/common.css"/>
    <script src="js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.js"></script>
</head>

<body>
<script src="js/jquery1.42.min.js"></script>

<c:if test="${not empty msg}">
    <script>
        alert("${msg}");
    </script>
</c:if>

<!--header star-->
<div class="header clearfix">
    <div class="top clearfix">
        <div class="topctent clearfix">
            <div class="left clearfix fl">
                您好，欢迎登录快递派发司机系统
            </div>
            <div class="right clearfix fr">
                <div class="zuo clearfix fl">
                    <ul class="clearfix fl">
                        <li>
                            <span class="fl"></span>
                            <a href="center.jsp" class="fl">个人中心</a>
                            <span class="fl"></span>
                        </li>
                        <li>
                            <a href="register.jsp">
                                免费注册
                            </a>
                        </li>
                        <li>
                            <a href="loginOut.do">
                                退出登录
                            </a>
                        </li>
                    </ul>
                </div>
                <div class="shopcar-btn clearfix fl">

                </div>
                <div class="fenxiang clearfix fl">
                    <span class="fl">分享到：</span>
                    <ul class="clearfix fl">
                        <li>
                            <a href="#"><img src="images/sina.png"/></a>
                        </li>
                        <li>
                            <a href="#"><img src="images/qq.png"/></a>
                        </li>
                        <li>
                            <a href="#"><img src="images/wechat.png"/></a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="bottom clearfix">
        <div class="logo clearfix">
            <a href="index.jsp"></a>
        </div>
        <div class="search clearfix fr ra5">
            <input type="text" class="fl" name="" value="" placeholder="请输入您要搜索的内容"/>
            <input type="button" name="" value="搜索" class="fl box-s"/>
        </div>
    </div>
</div>
<!--header end-->

<!--navbar star-->
<div class="navbar clearfix">
    <div class="content clearfix">
        <ul>
            <li class>
                <a href="index.jsp">首页</a>
            </li>
            <li>
                <a href="queryAllWaybillByPage.do">运单查询</a>
            </li>

        </ul>
    </div>
</div>
<!--navbar end-->

<!--Main-wrap-->
<div class="main-wrap graybg clearfix">
    <div class="wrapper pt40 pb40 clearfix">
        <div class="fl slide-nav white-box">
            <ul>
                <li class="on">
                    <a href="center.jsp" class="db fs16">个人信息</a>
                </li>
                <li>
                    <a href="queryWaybillByDriverId.do" class="db fs16">我的运单</a>
                </li>
                <li>
                    <a href="xgmm.jsp" class="db fs16">修改密码</a>
                </li>
            </ul>
        </div>
        <div class="fr slide-show white-box">
            <div class="dark-tit line-bot clearfix">
                <h3 class="fl fs26">个人信息</h3>
            </div>
            <div class="user-info mt50 clearfix">
                <form action="">
                    <div class="fl base-info">
                        <ul>
                            <li>
                                <label class="fl l-option">姓名：</label><input type="text" name="name" id="name"
                                                                             class="fl ml10" placeholder="">
                            </li>
                            <li class="radio-li">
                                <label class="fl l-option">性别：</label><input type="text" name="sex" id="sex"
                                                                             class="fl ml10" placeholder="">

                            </li>
                            <li>
                                <label class="fl l-option">邮箱：</label><input type="text" name="email" id="email"
                                                                             class="fl ml10" placeholder="">
                            </li>
                            <li>
                                <label class="fl l-option">仓库： </label><input type="text" name="warehouse_id"
                                                                              id="warehouse_id" readonly="readonly"
                                                                              class="fl ml10" placeholder="">
                            </li>
                            <li class="but-li pl10"><input type="button" id="saveBtn"
                                                           class="green-but radius3 fs16 ml50" value="保存修改"></li>
                        </ul>
                    </div>
                </form>
                <script>

                    $.ajax({
                        url: "queryMyInfo.do",
                        type: "POST",
                        dataType: "json",
                        success: function (data) {
                            var datas = data[0];
                            $("#name").val(datas.name)
                            // $("input[name='sex']").val(datas.sex)
                            // if (datas.sex == "男"){
                            // 	$("input[type='radio'][name='sex']").get(0).checked = true;
                            // }else {
                            // 	$("input[type='radio'][name='sex']").get(1).checked = true;
                            // }

                            $("#sex").val(datas.sex)
                            $("#email").val(datas.email)
                            $("#warehouse_id").val(datas.warehouseName)
                        }
                    })

                    $("#saveBtn").click(function () {
                        $.ajax({
                            url: "modifyDriver.do",
                            type: "GET",
                            data: {
                                name: $("#name").val(),
                                sex: $("#sex").val(),
                                email: $("#email").val(),
                            },
                            dataType: "json",
                            success: function (data) {
                                alert(data.msg);
                                if (data.code == "1") {
                                    window.location.reload()
                                }
                            }
                        });
                    });
                </script>

            </div>

        </div>

    </div>
</div>
<!--/end-->

<!--footer star-->
<div class="footer clearfix">
    <div class="content clearfix">
        <div class="top clearfix">
            <div class="list clearfix fl box-s">
                <div class="part icon1 box-s">
                    <h3>专业</h3>
                    <p>拥有资深艺术顾问和先进交易平台，安全物流，快捷支付。</p>
                </div>
            </div>
            <div class="list clearfix fl box-s">
                <div class="part icon2 box-s">
                    <h3>保真</h3>
                    <p>阵容强大的艺术评鉴团，确保平台上的藏品货真价实。</p>
                </div>
            </div>
            <div class="list clearfix fl box-s">
                <div class="part icon3 box-s">
                    <h3>保值</h3>
                    <p>为您精选具备艺术价值的作品，助您的资产保值、增值。</p>
                </div>
            </div>
        </div>
        <div class="bottom clearfix">
            <div class="left clearfix fl">
                <div class="list clearfix">
                    <div class="shang clearfix">
                        <p>新手指南</p>
                        <span></span>
                    </div>
                    <div class="xia clearfix">
                        <ul>
                            <li><a href="scgmlc.html">商城购买流程</a></li>
                            <li><a href="cjwt.html">常见问题</a></li>
                        </ul>
                    </div>
                </div>
                <div class="list clearfix">
                    <div class="shang clearfix">
                        <p>账户管理</p>
                        <span></span>
                    </div>
                    <div class="xia clearfix">
                        <ul>
                            <li><a href="zhcz.html">账户充值</a></li>
                            <li><a href="zhtx.html">账户提现</a></li>
                            <li><a href="zffs.html">支付方式</a></li>
                        </ul>
                    </div>
                </div>
                <div class="list clearfix">
                    <div class="shang clearfix">
                        <p>服务合作</p>
                        <span></span>
                    </div>
                    <div class="xia clearfix">
                        <ul>
                            <li><a href="friend-link.html">友情链接</a></li>
                            <li><a href="ysjrz.html">艺术家入驻</a></li>
                        </ul>
                    </div>
                </div>
                <div class="list clearfix">
                    <div class="shang clearfix">
                        <p>关于我们</p>
                        <span></span>
                    </div>
                    <div class="xia clearfix">
                        <ul>
                            <li><a href="gsjj.html">公司简介</a></li>
                            <li><a href="contact.html">联系我们</a></li>
                            <li><a href="jrwm.html">加入我们</a></li>
                        </ul>
                    </div>
                </div>
                <div class="list clearfix">
                    <div class="shang clearfix">
                        <p>售后服务</p>
                        <span></span>
                    </div>
                    <div class="xia clearfix">
                        <ul>
                            <li><a href="wlsm.html">物流说明</a></li>
                            <li><a href="mzsm.html">免责声明</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="middle clearfix fl">
                <ul>
                    <li><img src="upload/ewm.jpg"/></li>
                    <li><img src="upload/ewm.jpg"/></li>
                </ul>
            </div>
            <div class="right clearfix fr">
                <p class="bt">免费咨询热线：</p>
                <p class="tel">400-000-0000</p>
                <p class="fu-bt">(周一到周五8:00-22:00)</p>
            </div>
        </div>
    </div>
    <div class="banquan clearfix ta-center">
        Copyright © 2020 XXX文化(chunlingwenhua). All Rights Reserved.
    </div>
</div>
<!--footer end-->

</body>

</html>